package com.example.demo;

import com.example.demo.domain.MailConstants;
import org.springframework.amqp.core.Queue;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.example.demo.dao")
@EnableScheduling
public class HwMusicApplication {

    public static void main(String[] args) {
        SpringApplication.run(HwMusicApplication.class, args);
    }

    @Bean
    Queue quene(){
        return new Queue(MailConstants.MAIL_QUEUE_NAME);
    }
}

